package org.eiahe.hr.performance.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 岗位指标关联表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_performance_position_indicator")
public class PerformancePositionIndicator extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 岗位ID
     */
    private Long positionId;

    /**
     * 指标ID
     */
    private Long indicatorId;

    /**
     * 关联层级(1直接关联 2继承关联)
     */
    private Integer level;

    /**
     * 父岗位指标关联ID
     */
    private Long parentPositionIndicatorId;

    /**
     * 权重
     */
    private BigDecimal weight;

    /**
     * 删除标志(0存在 1删除)
     */
    @TableLogic
    private String delFlag;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
}